package cn.hdu.liang.ccio;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;

public class StandardOut {
    public static void main(String[] args) throws FileNotFoundException {
        try(PrintStream print = new PrintStream(new FileOutputStream("src/cn/hdu/liang/ccio/out.txt"))) {
            System.setOut(print);
            System.out.println("hello world");
        }
    }
}
